import HttpRequest from "@/utils/request";
import { IData } from "./types";

// 登录
export function login(data = {}) {
  return HttpRequest<IData>("/login", "POST", data);
}

// 登出
export function logout(data = {}) {
  return HttpRequest("/logout", "POST", data);
}

// 验证码
export function getCodeImg() {
  return HttpRequest("/captcha", "GET");
}
